package Builder_Patten.computer;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class client {
    public static void main(String[] args) {
        ComputerBuilder  cb;
        cb=(ComputerBuilder) XMLUtil.getBean();
        Computer computer;
        computer= cb.construct();
        System.out.println("产品为："+computer.getType());
        System.out.println("配件有：\n"+computer.getCPU());
        System.out.println(computer.getHard_disk());
        if (cb.isMonitor())
            System.out.println(computer.getMonitor());
        else;
        System.out.println(computer.getHost());
        System.out.println(computer.getMemory());
        System.out.println(computer.getHost());

    }
}
